import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'
const ProjectKey = 'project_id'
const ProjectRole = 'project_role'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getProjectId() {
  return Cookies.get(ProjectKey)
}

export function setProjectId(projectId) {
  return Cookies.set(ProjectKey,projectId)
}

export function removeProjectId() {
  return Cookies.remove(ProjectKey)
}

export function getProjectRole() {
  return Cookies.get(ProjectRole)
}

export function setProjectRole(projectRole) {
  return Cookies.set(ProjectRole,projectRole)
}

export function removeProjectRole() {
  return Cookies.remove(ProjectRole)
}

